﻿#ifndef __SS_GL_WND_H__
#define __SS_GL_WND_H__
#include <wx/wx.h>
#include "opengl/ssOpenGLSupport.h"

class ssGLPanel : public wxPanel
{
public:
	struct ssWndCoord
	{
		wxCoord x,y;
	};

	ssGLPanel(wxWindow* parent, const wxPoint& point, const wxSize& size);
	~ssGLPanel();
protected:
	virtual void OnRender();
	DECLARE_EVENT_TABLE()
	void OnIdle(wxIdleEvent& event);
	void OnClose(wxCloseEvent& ev);
	virtual void OnExit() {return;}
	virtual void OnKeyDown(wxKeyEvent& ev) {return;}
	virtual void OnKeyUp(wxKeyEvent& ev) {return;}
	virtual void OnLButtonDown(wxMouseEvent& ev);
	virtual void OnRButtonDown(wxMouseEvent& ev);
	virtual void OnMouseMove(wxMouseEvent& ev) {return;}
	virtual void OnMouseWheel(wxMouseEvent& ev) { return; }
	virtual void OnLeftMouseUp(wxMouseEvent& ev) { return; }


	ssWndCoord							m_RLastPoint;
	ssWndCoord							m_LLastPoint;
};

#endif
